<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@include file="/common/common.jsp"%>
<%@ page import="com.chanyachting.emall.util.RequestUtil"%>
<%@ page import="com.chanyachting.emall.util.CodeMap"%>
<%@ page import="com.chanyachting.emall.domain.Educationhistory"%>
<%@ page import="com.chanyachting.emall.service.ApplicationLeterService"%>
<%@ page import="com.chanyachting.emall.serviceImpl.ApplicationLeterServiceImpl"%>

<%@ page import="java.util.*"%>

<%

	RequestUtil ru=new RequestUtil(request);
	
	//获得求职信息id
	Integer appId=Integer.parseInt(ru.getParameter("id","0"));

%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="keywords" content="" />
<meta name="description" content="" />
<link href="css/import.css" type="text/css" rel="stylesheet" />
<title></title>

<script type="text/javascript" src="<%=root %>/js/jquery-1.3.2.min.js" charset="utf-8">//ADCRM</script>
<script type="text/javascript" src="<%=root %>/js/jquery.form.js" charset="utf-8">//ADCRM</script>

<script type="text/javascript">
<!--

	$(function(){
	
		$.ajaxSetup ({
		    cache: false //关闭AJAX相应的缓存
		});
	
		});


	var id="<%=appId%>";


	//添加教育经历 
	function addEH(theForm){

		options={
			    url:theForm.action,
			    success: function(data){

						alert("添加成功！");
					    
					    $(window.opener.document.getElementById("educationhistoryList")).load("applicationLeter_educationhistory_list.jsp",{id:id});
						    }
			  };
				
		$(theForm).ajaxSubmit(options);
	
	}



//-->
</script>


<!-- 教育背景 -->

  <table width="700" border="0" align="center" cellpadding="0"	cellspacing="0" id="b1">
	
	<form action="<%=root %>/memberBackend/educationhistoryAdd.do" method="post">
	
	<input type="hidden" name="appId" value="<%=appId %>" />
	
	<tr>
		<td height="28" align="right">时间：</td>
		<td>
			<input type="text" name="beginDate" value="2009-10-17"/>
			<input type="text" name="endDate" value="2019-10-17"/>
		</td>
	</tr>
	
	<tr>
		<td height="28" align="right">学校名称：</td>
		<td><input type="text" name="schoolName" id="textfield21" /></td>
	</tr>
	<tr>
		<td height="28" align="right">专业课程：</td>
		<td><input type="text" name="professional" id="textfield22" /></td>
	</tr>
	<tr>
		<td height="28" align="right">学 历：</td>
		<td><label> 
		<select name="schoolRecord" id="select20">
		<%
		
			Iterator it=CodeMap.edu.keySet().iterator();
		
			while(it.hasNext()){
				
				String key=it.next().toString();
				
				String value=CodeMap.edu.get(key).toString();
		%>
		<option value="<%=key %>"><%=value %></option>
		<%
				
			}
			
		%>
		</select> 
		</label></td>
	</tr>
	<tr>
		<td height="28" align="right">证书：</td>
		<td><input type="text" name="certificate" id="textfield24" /></td>
	</tr>
	<tr>
		<td height="28" align="right">专业描述：</td>
		<td><textarea name="professionalSummary" id="professionalSummary" cols="45" rows="5"></textarea></td>
	</tr>
	
	<tr>
		<td colspan="2" height="28" align="left">
			<input type="button"  value="确认提交" onclick="addEH(this.form);"/> &nbsp;&nbsp;
			<input type="button"  value="关闭" onclick="window.close();"/> &nbsp;&nbsp;
		</td>
	</tr>
	
	<tr>
		<td colspan="2" align="left" class="td_dashed"><label></label></td>
	</tr>
	</form>
</table>

</body>
</html>